﻿
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>高级检索界面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link href="~/X-admin/css/font.css" rel="stylesheet" />
    <script src="~/X-admin/lib/layui/layui.js"></script>
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>

</head>
<body>
    <ul lay-bar="disabled" class="mWebBanner">
        <li class="layui-nav-item" style="float:left;">
            <button id="btn-update" type="button" name="btn_update" onclick="queryStr()" style="border:0;background-color:transparent;color:#fff;cursor:pointer">
               确认查询
            </button>
        </li>
        <li class="layui-nav-item" style="float:left;padding-left:20px">
            <button id="btn-sync" type="button" onclick="closeWin()" style="border:0;background-color:transparent;color:#fff;cursor:pointer">
                取消查询
            </button>
        </li>
    </ul>
    <div class="layui-card" style="margin-top:10px">
        <div class="layui-card-body ">
            <form class="layui-form" id="qForm">
                <div id="qDiv" name="qDiv">
                   
                </div>
               
            </form>
        </div>
    </div>
 
</body>
</html>

<script>
    var webCode = "";
    $(function () {
        webCode = getUrlVariable("webCode");
        GetColumnsFields();
    })
    function GetColumnsFields() {
        $.ajax({
            url: "../System/LoadQueryFields", 
            data: { menuCode: webCode },
            dataType: "json",
            type: "POST",
            success: function (rsl) {
                if (rsl.result) {
                    InitDataForm(rsl.data, "qDiv");
                } else {
                    layer.msg(rsl.message); return;
                }
            }
        });
    }
    function queryStr(){
        var contion = FormToJson("qForm");
        parent.GetQueryPar(contion); //父页面函数
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);//关闭当前frame
    }
</script>

